﻿using System;
using System.Collections.Generic;
using System.Text;
using SqlSugar;

namespace YL.Core.Entity
{
    [SugarTable("Meter_DeviceDataHistory")]
    public class DeviceDataHistory
    {
        [SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
        public int HistoryId { set; get; }
        /// <summary>
        /// 设备id
        /// </summary>
        public int DeviceId { set; get; }
        /// <summary>
        /// 监测参数编码
        /// </summary>
        public string ParameterCode { set; get; }
        /// <summary>
        /// 监测参数名称
        /// </summary>
        public string ParameterName { set; get; }
        /// <summary>
        /// 参数值
        /// </summary>
        public string ParameterValue { set; get; }
        /// <summary>
        /// 参数状态（显示时当所有参数都正常时显示正常）0-正常;1-报警;2-故障
        /// </summary>
        public int ParameterStatus { set; get; }
        /// <summary>
        /// 插入时间
        /// </summary>
        public DateTime CreateTime { set; get; }
    }
}
